import { http } from "@/utils/http";

/** 获取用户通知列表 */
export const getUserNotificationsList = (params: {
  page: number;
  size: number;
  level?: string;
  status?: string;
  startDate?: string;
  endDate?: string;
  keyword?: string;
}) => {
  return http.request<any>("get", "/api/notifications/user", { params });
};
/** 获取用户通知详情 */
export const getUserNotificationDetail = (id: number) => {
  return http.request<any>("get", `/api/notifications/${id}`);
};
